/**
 * 
 */
package org.wicket.jbpm.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.commons.lang.StringUtils;

/**
 * @author Emmanuel Nollase - emanux
 * created 2009 10 8 - 15:34:27
 */
public final class DateFormatter
{

    private static final SimpleDateFormat FORMATTER = new SimpleDateFormat("MM/dd/yyyy hh:mm:ss");
    
    public static String format(Date date)
    {
	if(null != date)
	{
	    return FORMATTER.format(date);
	}
	
	return StringUtils.EMPTY;
    }
    
    private DateFormatter(){}
}
